package com.nian.global.domain;

import java.util.Date;

/**
 * Created by nian on 2024/6/20.
 */
public class General {


    /**
     *
     */
    Long id;

    /**
     * 有效标识：0 无效， 1 有效
     */
    private String validFlag;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date modifyDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getValidFlag() {
        return validFlag;
    }

    public void setValidFlag(String validFlag) {
        this.validFlag = validFlag;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        if (modifyDate == null) {
            modifyDate = new Date();
        }
        this.modifyDate = modifyDate;
    }
}
